#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main()
{
    string in;
    cin >> in;
    size_t pos;
    string ans, pre, last;
    if((pos = in.find('.')) != string::npos){
        pre = in.substr(0, pos);
        last = in.substr(pos+1);
        reverse(pre.begin(), pre.end());
        reverse(last.begin(), last.end());

        if(stoll(pre) == 0) ans+="0";
        else{
            while(*pre.begin()=='0') pre.erase(pre.begin());
            ans += pre;
        }
        ans += in[pos];
        if(stoll(last) == 0) ans+="0";
        else{
            while(*(last.end()-1)=='0') last.erase((last.end()-1));
            ans += last;
        }

    }
    else if((pos = in.find('/')) != string::npos){
        pre = in.substr(0, pos);
        last = in.substr(pos+1);
        reverse(pre.begin(), pre.end());
        reverse(last.begin(), last.end());
        if(stoll(pre) == 0) ans+="0";
        else{
            while(*pre.begin()=='0') pre.erase(pre.begin());
            ans += pre;
        }
        ans += in[pos];
        if(stoll(last) == 0) ans+="0";
        else{
            while(*last.begin()=='0') last.erase(last.begin());
            while(*(last.end()-1)=='0') last.erase((last.end()-1));
            ans += last;
        }
    }
    else if((pos = in.find('%')) != string::npos){
        pre = in.substr(0, pos);
        reverse(pre.begin(), pre.end());
        bool zero = true;
        for(int i=0; i<pre.size(); ++i) if(pre[i]!='0') zero = false;
        if(zero) ans+="0";
        else{
            while(*pre.begin()=='0') pre.erase(pre.begin());
            ans += pre;
        }
        ans += "%";
    }
    else{
        pre = in;
        reverse(pre.begin(), pre.end());
        bool zero = true;
        for(int i=0; i<pre.size(); ++i) if(pre[i]!='0') zero = false;
        if(zero) ans+="0";
        else{
            while(*pre.begin()=='0') pre.erase(pre.begin());
            ans += pre;
        }
    }
    cout << ans;
    return 0;
}
